<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/system/cms/image" method="post">
        <input type="hidden" name="pageSize" value="${model.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
        <div class="bjui-searchBar">
            <label>状态:</label>
            <select name="imgAuditingStatus" data-toggle="selectpicker">
                @if(isEmpty(pojo.imgAuditingStatus)){
                <option value="" selected>所有</option>
                <option value="4"> 审核通过</option>
                <option value="2"> 未审核</option>
                @}else if(pojo.imgAuditingStatus==4){
                <option value="">所有</option>
                <option value="4" selected> 审核通过</option>
                <option value="2"> 未审核</option>
                @}else{
                <option value="">所有</option>
                <option value="4"> 审核通过</option>
                <option value="2" selected> 未审核</option>
                @}
            </select>&nbsp;
            <label>图片名称：</label><input type="text"  value="${pojo.imgName!}" name="imgName" class="form-control" size="15">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            &nbsp;
            <a href="${ctxPath}/system/cms/image/input" class="btn btn-green" data-icon="plus" data-toggle="dialog" data-maxable="false" data-resizable="true" data-width="650" data-height="600" data-id="add-image" data-title="添加图片">添加图片</a>
            &nbsp;
            <a class="btn btn-green" href="${ctxPath}/system/cms/image/changeStatus" data-toggle="doajaxchecked" data-confirm-msg="确定审核选中项吗？" data-idname="ids" data-group="ids" data-icon="undo">审核通过</a>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <!--<li class="divider"></li>-->
                        <li><a href="${ctxPath}/system/cms/image/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids">删除<font COLOR="#ff6347">选中</font>行</a></li>
                        <!--<li><a href="ajaxDone2.html" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="delids" data-group="ids">删除选中</a></li>-->
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
            <tr>
                <th align="center" width="25">No</th>
                <th align="center" width="120">图片</th>
                <th align="center" width="120">图片名称</th>
                <th align="center" width="60">来源</th>
                <th align="center" width="60">摄影师</th>
                <th align="center" width="60">状态</th>
                <th align="center" width="80">创建时间</th>
                <th align="center" width="26" ><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="80">操作</th>
            </tr>
        </thead>
        <tbody id="imgListDiv">
        @for(image in model.list){
            <tr data-id="${imageLP.index}">
                <td align="center">${image.sourceId!}</td>
                <td align="center"><img src="${image.imgUrl!}" width="150" height="100"/></td>
                <td align="center">${image.imgName!,xss}</td>
                <td align="center">${image.imgSource!"N/A",xss}</td>
                <td align="center">${image.webUserName!"N/A",xss}</td>
                @if(image.imgAuditingStatus==4){
                	<td align="center">通过</td>
                @}else{
                	<td align="center">未通过</td>
                @}
                <td align="center">${image.uploadTime!"N/A",dateFormat="yyyy-MM-dd"}</td>
                <td align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="${image.sourceId!}"></td>
                <td align="center">
                    <a href="${ctxPath}/system/cms/image/input?imageId=${image.sourceId!}" class="btn btn-green"  data-toggle="dialog" title="编辑图片" data-maxable="false" data-resizable="true" data-width="650" data-height="600" data-id="edit-image-tab"  data-title="编辑图片">编辑</a>
                    <a href="${ctxPath}/system/cms/image/delete?ids=${image.sourceId!}" class="btn btn-red" data-toggle="doajax" title="删除信息" data-confirm-msg="确定要删除该行信息吗？">删</a>
                </td>
            </tr>
        @}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 ${model.total!} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="${model.total!}" data-page-size="30" data-page-current="1">
    </div>
</div>
<style>
	#imgListDiv img:hover{
	  transform: scale(1.6);
	}
</style>